package com.brillilab.domain.enums.lab;

import com.brillilab.domain.enums.base.BaseEnum;

/**
 * 实验室枚举
 *
 * @author lj
 */
public class LabEnum {
    /**
     * 状态：1-正常，2-冻结，3-删除
     */
    public static enum State implements BaseEnum<State, Integer> {
    	NORMAL("正常", 1), FROZEN("冻结", 2), DELETE("删除", 3);
        public String key;
        private Integer value;

        private State(String key, Integer value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public static String getKey(Integer value) {
            for (State p : State.values()) {
                if (p.getValue().equals(value)) {
                    return p.key;
                }
            }
            return null;
        }

        public Integer getValue() {
            return value;
        }

    }


}
